# -*- coding: utf-8 -*-
"""
===============================
@Author     : Zuo WenTao
@Time       : 2024/11/8 10:21
@Description: 
@Change     : 
@File       : 账号绑定.py
===============================
"""

pop_str = """
e8940987@163.com----YFvc2081----CY6ZEUE3i7BhzQxK
nbkbooi64@163.com----XEyo0203----ADDwb8RBYEB6hk6x
spuaorb1@163.com----LUmm8883----LADx8B9pc6xzA2wP
bdekpqjl91@163.com----GEui9374----EVDxLwznrrE85ydZ
vm68511950@163.com----MRbw9988----XYDxDZE6axVxMf7n
sfhwnq628@163.com----AYpa1630----LGDxC9hisTJGdmth
qcqtm41546@163.com----DWxn1523----DYDx7LZuW3v5jgPN
fm342897@163.com----DSgj5603----XXDyrU8uZUQYWvfu
zhi467014@163.com----DDqg4919----UMDyA32UGKWcxJfb
lugou90146@163.com----OUyq3299----MFDyG3SXeL4M5hpx
zpob9794@163.com----FUak8107----SLDyDBLwPEgHmuyM
ifolsbwtv@163.com----KTga3464----NADzDAsUkqcXA7hY
fqgq355445@163.com----DNyg6935----BPDzM34EvwBm5rkN
x484113836@163.com----DObe2954----GQDzXGMti3PDTe3d
ganglai92@163.com----FMfk1398----MHDzh3r6jW9B6dUT
fnap309344@163.com----ZYhx2841----YRDz537c89YAaPQk
mu26831896@163.com----AJya0042----CNDzQzEdNUYPirVr
a51787448@163.com----BUlb9910----MYE2LnamfCcCv8Fb
nrvvo91561@163.com----SFvo3673----WCE2tvxngj7sukut
wa12991@163.com----CIma6607----KKE2d38PbXvQRPkB
aocj6364@163.com----HRqh2858----ALE27Y7xBhxgzy2S
he34690520@163.com----HIwl4751----UZE2j38DUdb6jqYN
wo544207@163.com----BRcr2743----XFE3MqubbPRDtdyT
yvfz50270@163.com----MYjh6415----WRE3kULgTrP38c93
quan319621@163.com----GMrg4989----DQE3nix9rxUDw48E
coushe0491@163.com----QDgq4119----UPE4gWah7ySFK7xq
o19734420@163.com----KTrp7239----UNE42jE8iuVESd3H
you2358429@163.com----SRiq9500----JXE45JWzA8NVDNZR
sushan5059@163.com----ZIug9130----UPE5P9pt9rzsmNJD
cinbhekce@163.com----MKry7516----HSE66vKurs4MMGPf
qrwvnfubz4@163.com----XCse2623----UCE7PMLEy69U3K3Q
yzswpbiu@163.com----KRtp4563----XEE7DptnFUxAP7vW
hwni381275@163.com----RFim4452----YEE7tuimPNaFC6A3
buu9141415@163.com----ZJrp6460----MXE74aDquTaTHFTe
bgrlley@163.com----UMqu8216----SFE7b3BmP7S6ZAvJ
sou0625665@163.com----TJdt7031----EKE7WgjMeZdRtfPz
ye91213@163.com----XXog6459----GAE82c9M7AXEZ6HZ
fvaliubv@163.com----GSdh8284----UFE8mLYcwZGCE6TH
mxeknbs779@163.com----ESyt0643----VAE8Ej3FWRXFWFqW
can89145@163.com----TTug9893----UGE8JEUGdh6MNa3J
"""
# bailian_users = [13552425774, 13522435843, 13552410285, 13522407915, 13552437309, 13552437659, 13552974154, 17812027453, 13522435173, 13522659041, 13522379401, 13522473403, 13552369274, 13552404273, 13522412671, 13552405943, 13552443026, 13522749724, 13521094271, 13522457691, 13522741093, 13552475212, 13521421097, 13521475305, 13522540783, 13552246416, 13522748173, 13552413053, 13552412472, 13522473271, 13522415370, 13552477439, 13522671364, 13552472170, 13521420378, 13522437210, 13522411269, 13552294263, 13552437081, 13552438301]
# # bailian_users = [13552425774, 13522435843]
# pop_list = [_ for _ in pop_str.split("\n") if _]
# emails = []
# for email_info, bailian_user in zip(pop_list, bailian_users):
#     email, web_password, password = email_info.split("----")
#     emails.append({
#         "email_address": email,
#         "email_password": password,
#         "email_web_password": web_password,
#         "server_address": 'pop.163.com',
#         "username":  bailian_user,
#         "password": 'qq123456'
#     })
# print(emails)

from datetime import datetime, timedelta
def get_previous_and_next_day(date_str):
    current_date = datetime.strptime(date_str, "%Y-%m-%d %H:%M:%S")

    previous_day_midnight = current_date - timedelta(days=1, hours=current_date.hour, minutes=current_date.minute, seconds=current_date.second)

    next_day_midnight = current_date + timedelta(days=0, hours=current_date.hour, minutes=current_date.minute, seconds=current_date.second) - timedelta(seconds=1)

    previous_day_midnight_str = previous_day_midnight.strftime("%Y-%m-%d %H:%M:%S")
    next_day_midnight_str = next_day_midnight.strftime("%Y-%m-%d %H:%M:%S")

    return previous_day_midnight_str, next_day_midnight_str

date_str = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
previous_day_midnight, next_day_midnight = get_previous_and_next_day(date_str)
print(previous_day_midnight, next_day_midnight)